<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>思云课堂</title>
    <link rel="stylesheet" href="/css/goods/goods-add.css">
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script src="/layui/layui.js"></script>
    <script src="/jquery/jquery-3.2.1.min.js"></script>
    <link rel="stylesheet" href="/css/goods/goods-table.css">
</head>
<body>
<div id="box">
    <div id="box-top">
        <div id="box-top-left">
            <span class="span2">添加商品</span>
        </div>
        <div id="box-top-right">
            <button class="layui-btn layui-btn-sm" onclick="location.reload()">
                <i class="layui-icon layui-icon-refresh"></i>刷新
            </button>
            <button type="button" class="layui-btn layui-btn-sm" onclick="goBack()">
                <span class="layui-icon">&#xe65c; 返回</span>
            </button>
        </div>
    </div>
    <div id="box-body">
        <div id="box-body-body">
            <form class="layui-form" id="form" lay-filter="form">
                <div class="layui-form-item">
                    <div class="layui-block">
                        <label class="layui-form-label">商品分类: </label>
                        <div id="sort" class="layui-input-block" style="width: 150px"></div>
                    </div>
                    <div class="layui-block">
                        <label class="layui-form-label">商品名称: </label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input-inline" required lay-verify="required" name="productName" placeholder="请输入商品名称"/>
                        </div>
                    </div>
                    <div class="layui-block" id="images">
                        <label class="layui-form-label">商品图片: </label>
                        <div class="layui-upload-list" id="image" style="margin-left: 110px;width: 305px">
                            <img id="test" src="/images/uploads.jpg" height="98px" width="98px" class="layui-upload-img uploadImgPreView" style="border: 1px solid #ccc;">
                        </div>
                        <input type="text" class="layui-hide" required lay-verify="required" name="mainImage"/>
                    </div>
                    <div class="layui-block" id="tx1">
                        <label class="layui-form-label">商品介绍: </label>
                        <div class="layui-input-block">
                            <textarea class="layui-textarea" name="productDescription" required lay-verify="required" style=" resize: none;"
                                      placeholder="请输入内容"></textarea>
                        </div>
                    </div>
                    <div class="layui-block" id="tx2">
                        <label class="layui-form-label">商品标签: </label>
                        <div class="layui-input-block">
                            <textarea class="layui-textarea" name="productLabel" required lay-verify="required" style=" resize: none;"
                                      placeholder="请输入标签"></textarea>
                        </div>
                    </div>
                    <div class="layui-block" style="margin-top: 5px">
                        <label class="layui-form-label">商品货号: </label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input-inline" required lay-verify="required|number" name="productCode" placeholder="请输入商品货号"/>
                        </div>
                    </div>
                    <div class="layui-block">
                        <label class="layui-form-label">商品售价: </label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input-inline" required lay-verify="required|number" name="originalpriceProduct" placeholder="请输入商品价格"/>
                        </div>
                    </div>
                    <div class="layui-block">
                        <label class="layui-form-label">关键字: </label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input-inline" required lay-verify="required" name="searchKeywords" placeholder="请输入商品关键字"/>
                        </div>
                    </div>
                    <div class="layui-block" id="radio1">
                        <label class="layui-form-label">商品推荐: </label>
                        <div class="layui-input-block">
                            <input type="radio" name="recommend" value="2" title="新品" checked>
                            <input type="radio" name="recommend" value="3" title="推荐">
                        </div>
                    </div>
                    <div class="layui-block" id="radio2">
                        <label class="layui-form-label">可用优惠券: </label>
                        <div class="layui-input-block">
                            <input type="radio" name="discount" value="2" title="是" checked>
                            <input type="radio" name="discount" value="3" title="否">
                        </div>
                    </div>
                    <div class="layui-block" id="radio3">
                        <label class="layui-form-label">服务保证: </label>
                        <div class="layui-input-block">
                            <input type="radio" name="ensure" value="2" title="无忧退货" checked>
                            <input type="radio" name="ensure" value="3" title="快速退款">
                            <input type="radio" name="ensure" value="4" title="免费包邮">
                        </div>
                    </div>
                </div>
                <div id="box-body-dy">
                    <button type="submit" lay-submit class="layui-btn" id="submit">完成</button>
                </div>
                <input type="hidden" name="productSate" value="2">
                <input type="hidden" name="createId" value="">
            </form>
        </div>
    </div>
</div>
</body>
<script src="/js/goods/goods-add.js"></script>
</html>